import Mock from 'mockjs';

const data=Mock.mock({"list|100":[
    {
        id:"@id",
        name:"@cname",
        image:"@image(100X100,@color,@city)",
        desc:"@ctitle(2,10)"
    }

]});

const dish=Mock.mock({
    "炒饭|5":[{
        id:"@id",
        title:"@ctitle(2,10)",
        image:"@image(100X100,@color,@city)",
        desc:"@ctitle(10,30)"
    }],
    "点心|4":[
        {
            id:"@id",
            title:"@ctitle(2,10)",
            image:"@image(100X100,@color,@city)",
            desc:"@ctitle(10,30)"
        } 
    ],
    "炒面|8":[{
        id:"@id",
        title:"@ctitle(2,10)",
        image:"@image(100X100,@color,@city)",
        desc:"@ctitle(10,30)"
    }]
})

Mock.mock('/api/list',data);

Mock.mock('/api/dish',dish);
